Optimal. Leaf size=34 \[ \frac {A \log (x)}{a}-\frac {(A b-a B) \log \left (a+b x^2\right )}{2 a b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 34, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {457, 78}
\begin {gather*} \frac {A \log (x)}{a}-\frac {(A b-a B) \log \left (a+b x^2\right )}{2 a b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 78
Rule 457
Rubi steps
\begin {align*} \int \frac {A+B x^2}{x \left (a+b x^2\right )} \, dx &=\frac {1}{2} \text {Subst}\left (\int \frac {A+B x}{x (a+b x)} \, dx,x,x^2\right )\\ &=\frac {1}{2} \text {Subst}\left (\int \left (\frac {A}{a x}+\frac {-A b+a B}{a (a+b x)}\right ) \, dx,x,x^2\right )\\ &=\frac {A \log (x)}{a}-\frac {(A b-a B) \log \left (a+b x^2\right )}{2 a b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 34, normalized size = 1.00 \begin {gather*} \frac {A \log (x)}{a}+\frac {(-A b+a B) \log \left (a+b x^2\right )}{2 a b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.07, size = 33, normalized size = 0.97
method | result | size |
default | \(\frac {A \ln \left (x \right )}{a}-\frac {\left (A b -B a \right ) \ln \left (b \,x^{2}+a \right )}{2 a b}\) | \(33\) |
norman | \(\frac {A \ln \left (x \right )}{a}-\frac {\left (A b -B a \right ) \ln \left (b \,x^{2}+a \right )}{2 a b}\) | \(33\) |
risch | \(\frac {A \ln \left (x \right )}{a}-\frac {\ln \left (b \,x^{2}+a \right ) A}{2 a}+\frac {\ln \left (b \,x^{2}+a \right ) B}{2 b}\) | \(37\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.30, size = 35, normalized size = 1.03 \begin {gather*} \frac {A \log \left (x^{2}\right )}{2 \, a} + \frac {{\left (B a - A b\right )} \log \left (b x^{2} + a\right )}{2 \, a b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.01, size = 32, normalized size = 0.94 \begin {gather*} \frac {2 \, A b \log \left (x\right ) + {\left (B a - A b\right )} \log \left (b x^{2} + a\right )}{2 \, a b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.50, size = 26, normalized size = 0.76 \begin {gather*} \frac {A \log {\left (x \right )}}{a} + \frac {\left (- A b + B a\right ) \log {\left (\frac {a}{b} + x^{2} \right )}}{2 a b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.07, size = 36, normalized size = 1.06 \begin {gather*} \frac {A \log \left (x^{2}\right )}{2 \, a} + \frac {{\left (B a - A b\right )} \log \left ({\left | b x^{2} + a \right |}\right )}{2 \, a b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.06, size = 32, normalized size = 0.94 \begin {gather*} \frac {A\,\ln \left (x\right )}{a}-\frac {\ln \left (b\,x^2+a\right )\,\left (A\,b-B\,a\right )}{2\,a\,b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________